popup: require GdkSurface
authorMatthias Clasen <mclasen@redhat.com>
Tue, 10 Mar 2020 11:23:49 +0000 (07:23 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 12 Mar 2020 19:30:11 +0000 (15:30 -0400)
gdk/gdkpopup.c

index 1269f89e8b5e1e562d8abd077b02006d1f735502..d6f3ef971a0370f4f3f22056bde93aa816d1b19c 100644 (file)
@@ -19,9 +19,9 @@
 
 #include "config.h"
 
+#include "gdk-private.h"
 #include "gdkintl.h"
 #include "gdkpopupprivate.h"
-#include "gdk-private.h"
 
 /**
  * SECTION:gdkpopup
  * and is positioned relative to it.
  */
 
-
-/* FIXME: this can't have GdkSurface as a prerequisite
- * as long as GdkSurface implements this interface itself
- */
-G_DEFINE_INTERFACE (GdkPopup, gdk_popup, G_TYPE_OBJECT)
+G_DEFINE_INTERFACE (GdkPopup, gdk_popup, GDK_TYPE_SURFACE)
 
 static gboolean
 gdk_popup_default_present (GdkPopup       *popup,